package com.image;

import java.awt.image.BufferedImage;

public interface ImageDPIProcessor {
    /**
     * 根据文件后缀扩展名判断是否能进行处理
     *
     * @param fileName
     * @return
     */
    public boolean canHandle(String fileName);

    /**
     *
     * @param srcimage
     * @param dpi
     *            dot per inch
     * @return
     * @throws Exception
     */
    public byte[] process(final BufferedImage srcimage, final int dpi) throws Exception;
}
